<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
	<script src="<c:url value="/scripts/map.control.js"/>" type="text/javascript" language="javascript" charset="utf-8"></script>
	<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript" language="javascript"></script>
	

    <script type="text/javascript">

	    function delval(delvalw){
	    	if(delvalw=="searchw"){
	    		$("#searchw").val("");
	    		return false;
	    	}
	    	else if(delvalw=="j_username"){
	    		$("#j_username").val("");
	    		return false;
	    	}
	    	else if(delvalw=="j_password"){
	    		$("#j_password").val("");
	    		return false;
	    	}
	    }
    
	    $(document).ready(function(){
	    	// $("body").css("overflow", "hidden");
	    	
		    $(window).resize(function(){
	    		addControlZoombar();
	    	});

		    var lonlat = new OpenLayers.LonLat(14130547.718154728, 4516771.521965598);
	    	var map = getInitializedMap(lonlat);	    	

	    	// $("#umanji_login").colorbox();
			var dialogOpts = { modal: true, bgiframe: true, autoOpen: false, height: 500, width: 500,
								draggable: true, resizeable: true };
	
			$('#umanji_login').click( function (){
				$("#login_div").load('<c:url value="/login.jsp"/>').dialog(dialogOpts);	//end dialog
				$("#login_div").dialog("open");
				return false;
			});

			$('#umanji_new_member').click( function (){
				 $("#login_div").load('<c:url value="/umj/user/create"/>').dialog(dialogOpts); 
				 $("#login_div").dialog("open");
				return false;
			});


			$("#umj_head_menu img").hover(function() {
				$(this).attr("src", $(this).attr("src").split(".").join("-hover."));  // adds -hover to the name of the image
			}, function() {
				$(this).stop(true,false); // prevents the creation of stacked actions
				$(this).attr("src", $(this).attr("src").split("-hover.").join("."));  // removes -hover from the name of the image
			});

			// var $tabs = $('#umanji_menu').tabs();
	    	// var selected = $tabs.tabs('option', 'selected'); // => 0
    	});

    </script>